(function(window) {
	var core_version = "1.0.1",
	/*
	 * 
	 */
	_rbase = /select\sfrom \s\[.*?\]/i,
	/*
	 * 
	 */
	_rbase1 = /select\sfrom \s\[.*?\]/i,
	/*
	 * 
	 */
	_r_s_xxxxx1 = /([.*?])\./i,
	/*
	 * 
	 */
	_r_g_xxxxx1 = /([.*?])\./i;

	var jMdxVal = {
		_val_3238658125 : function(list1, list2, list3, list4, toAdd, target) {
			for ( var i = 0; i < list1.length; i++) {
				var id = list1[i].data.id;
				if ('[Measures]' !== id.split('.')[0]
						&& toAdd.split('.')[0] === id.split('.')[0]) {
					return false;
				}
			}
			for ( var i = 0; i < list2.length; i++) {
				var id = list2[i].data.id;
				if ('[Measures]' !== id.split('.')[0]
						&& toAdd.split('.')[0] === id.split('.')[0]) {
					return false;
				}
			}
			for ( var i = 0; i < list3.length; i++) {
				var id = list3[i].data.id;
				if ('[Measures]' !== id.split('.')[0]
						&& toAdd.split('.')[0] === id.split('.')[0]) {
					return false;
				}
			}
			for ( var i = 0; i < list4.length; i++) {
				var id = list4[i].data.id;
				if ('[Measures]' !== id.split('.')[0]
						&& toAdd.split('.')[0] === id.split('.')[0]) {
					return false;
				}
			}
			return true;
		},
		_val_3238658048 : function(list1, list2, list3, list4, toAdd, target) {
			for ( var i = 0; i < list1.length; i++) {
				var id = list1[i].data.id;
				if ('[Measures]' === id.split('.')[0] && 1 !== target) {
					return false;
				}
			}
			for ( var i = 0; i < list2.length; i++) {
				var id = list2[i].data.id;
				if ('[Measures]' === id.split('.')[0] && 2 !== target) {
					return false;
				}
			}
			for ( var i = 0; i < list3.length; i++) {
				var id = list3[i].data.id;
				if ('[Measures]' === id.split('.')[0] && 3 !== target) {
					return false;
				}
			}
			for ( var i = 0; i < list4.length; i++) {
				var id = list4[i].data.id;
				if ('[Measures]' === id.split('.')[0] && 4 !== target) {
					return false;
				}
			}
			return true;
		},
		_valGrammar : function(list1, list2, list3, list4, toAdd, target) {
			return this._val_3238658125(list1, list2, list3, list4, toAdd,
					target)
					&& this._val_3238658048(list1, list2, list3, list4, toAdd,
							target);
		},
		validate : function() {
			if (arguments.length === 0) {
				return true;
			} else if (arguments.length === 6) {
				return this._valGrammar(arguments[0], arguments[1],
						arguments[2], arguments[3], arguments[4], arguments[5]);
			} else {
				return false;
			}
		}
	};
	window.jMdxVal = window.$V = jMdxVal;
})(window);